package net.thxjj.adminServer;

import net.thxjj.adminServer.websocket.NBServer;
import net.thxjj.adminServer.websocket.mq.MqClient;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.data.mongodb.config.EnableMongoAuditing;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import javax.annotation.Resource;


@MapperScan("net.thxjj.adminServer.dao")
@EnableMongoAuditing
@ServletComponentScan
@EnableScheduling
@EnableAsync
@SpringBootApplication
public class Application extends SpringBootServletInitializer implements  CommandLineRunner {



	@Resource
	private NBServer nbServer;

	@Resource
	private MqClient mqClient;

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}



	@Override
	public void run(String... args) throws Exception {
//		nbServer.run();
//		mqClient.connect();
	}
}
